import Vue from 'vue'
import Vuex from 'vuex'
import banner from './banner/index'
import cate from './cate/index'
import goods from './goods/index'
import menu from './menu/index'
import role from './role/index'
import seck from './seck/index'
import specs from './specs/index'
import user from './user/index'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        title:'后台管理系统'
    },
    getters: {
        getTitle:state =>state.title
    },
    mutations: {},
    actions: {},
    modules: {
        menu,
        user,
        role,
        cate,
        specs,
        goods,
        banner,
        seck,
    }
})